﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Treely.Data.Model.Abstract;

namespace Treely.Data.Model
{
    public class ObjectiveSection : AuditObject
    {
        [Key]
        public int ObjectiveSectionId { get; set; }

        public int ObjectiveOrder { get; set; }

        public string Title { get; set; }

        public string Content { get; set; }

        [ForeignKey("Objective")]
        public int ObjectiveId { get; set; }

        public virtual Objective Objective { get; set; }

        public ObjectiveSection(ApplicationUser creatingUser)
            : base(creatingUser)
        {
        }
    }
}